<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>胡鹏 - 活动记录 | 优选商城</title>
    <meta name="description" content="您的所有活动记录">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
         :root {
            --primary: #4361ee;
            --secondary: #3f37c9;
            --accent: #ff6b6b;
            --success: #4cc9f0;
            --light: #f8f9fa;
            --dark: #2b2d42;
            --gray: #6c757d;
            --light-gray: #e9ecef;
            --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            --transition: all 0.3s ease;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #f5f7fa 0%, #eef2f7 100%);
            color: var(--dark);
            line-height: 1.6;
            min-height: 100vh;
            padding: 20px;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
        }
        /* 返回按钮样式 */
        
        .back-btn {
            position: absolute;
            top: 20px;
            right: 20px;
            z-index: 100;
            background: rgba(255, 255, 255, 0.9);
            border: none;
            border-radius: 30px;
            padding: 10px 20px;
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 600;
            color: var(--primary);
            cursor: pointer;
            transition: var(--transition);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(5px);
        }
        
        .back-btn:hover {
            background: white;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
        }
        
        .back-btn i {
            transition: transform 0.3s ease;
        }
        
        .back-btn:hover i {
            transform: translateX(-3px);
        }
        /* 头部样式 */
        
        header {
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            color: white;
            padding: 25px 30px;
            border-radius: 16px;
            margin-bottom: 30px;
            box-shadow: var(--card-shadow);
            position: relative;
            overflow: hidden;
        }
        
        header::before {
            content: "";
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
            transform: rotate(30deg);
        }
        
        .page-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 20px;
            position: relative;
            z-index: 2;
        }
        
        .page-header h1 {
            font-size: 1.8rem;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }
        /* 筛选和搜索区域 */
        
        .filters {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 25px;
            background: white;
            padding: 20px;
            border-radius: 16px;
            box-shadow: var(--card-shadow);
        }
        
        .search-box {
            flex-grow: 1;
            position: relative;
            max-width: 400px;
        }
        
        .search-box input {
            width: 100%;
            padding: 12px 20px 12px 45px;
            border: 1px solid var(--light-gray);
            border-radius: 30px;
            font-size: 1rem;
            transition: var(--transition);
        }
        
        .search-box input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
        }
        
        .search-box i {
            position: absolute;
            left: 18px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--gray);
        }
        
        .filter-group {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }
        
        .filter-select {
            padding: 10px 20px;
            border: 1px solid var(--light-gray);
            border-radius: 30px;
            background: white;
            font-size: 0.95rem;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .filter-select:focus {
            outline: none;
            border-color: var(--primary);
        }
        
        .filter-btn {
            padding: 10px 20px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 30px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .filter-btn:hover {
            background: var(--secondary);
            transform: translateY(-2px);
        }
        /* 活动时间线 */
        
        .timeline {
            position: relative;
            margin: 40px 0 60px;
            padding-left: 30px;
        }
        
        .timeline::before {
            content: '';
            position: absolute;
            left: 10px;
            top: 0;
            bottom: 0;
            width: 4px;
            background: var(--light-gray);
            border-radius: 2px;
        }
        
        .timeline-item {
            position: relative;
            margin-bottom: 30px;
            background: white;
            border-radius: 16px;
            padding: 25px;
            box-shadow: var(--card-shadow);
            transition: var(--transition);
            border-left: 4px solid var(--primary);
        }
        
        .timeline-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
        }
        
        .timeline-item::before {
            content: '';
            position: absolute;
            left: -37px;
            top: 24px;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--primary);
            border: 4px solid white;
            box-shadow: 0 0 0 2px var(--primary);
        }
        
        .timeline-date {
            position: absolute;
            left: -110px;
            top: 20px;
            background: white;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--dark);
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
            min-width: 90px;
            text-align: center;
        }
        
        .timeline-content {
            display: flex;
            gap: 20px;
            align-items: flex-start;
        }
        
        .timeline-icon {
            width: 50px;
            height: 50px;
            background: var(--light);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            flex-shrink: 0;
            font-size: 1.2rem;
            border: 1px solid var(--light-gray);
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
        }
        
        .timeline-details {
            flex-grow: 1;
        }
        
        .timeline-title {
            font-weight: 600;
            margin-bottom: 8px;
            font-size: 1.2rem;
            color: var(--dark);
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }
        
        .timeline-desc {
            color: var(--gray);
            margin-bottom: 12px;
            font-size: 1rem;
            line-height: 1.5;
        }
        
        .timeline-meta {
            display: flex;
            gap: 15px;
            color: var(--gray);
            font-size: 0.9rem;
        }
        
        .timeline-meta span {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        /* 徽章样式 */
        
        .badge {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
        }
        
        .badge-primary {
            background: var(--primary);
            color: white;
        }
        
        .badge-success {
            background: #4ade80;
            color: white;
        }
        
        .badge-warning {
            background: #f59e0b;
            color: white;
        }
        
        .badge-info {
            background: #0ea5e9;
            color: white;
        }
        /* 分页样式 */
        
        .pagination {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin: 40px 0 20px;
        }
        
        .pagination-btn {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            border: 1px solid var(--light-gray);
            background: white;
            color: var(--dark);
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .pagination-btn:hover,
        .pagination-btn.active {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
            transform: translateY(-2px);
        }
        
        .pagination-btn.disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        /* 页脚样式 */
        
        footer {
            text-align: center;
            margin-top: 40px;
            color: var(--gray);
            font-size: 0.95rem;
            padding: 20px;
            border-top: 1px solid var(--light-gray);
        }
        /* 响应式调整 */
        
        @media (max-width: 900px) {
            .timeline {
                padding-left: 0;
            }
            .timeline::before {
                display: none;
            }
            .timeline-item::before {
                display: none;
            }
            .timeline-date {
                position: static;
                margin-bottom: 15px;
                display: inline-block;
            }
        }
        
        @media (max-width: 768px) {
            .page-header {
                flex-direction: column;
                align-items: flex-start;
            }
            .filters {
                flex-direction: column;
            }
            .search-box {
                max-width: 100%;
            }
            .back-btn {
                position: relative;
                top: 0;
                right: 0;
                margin-bottom: 20px;
                width: fit-content;
            }
            .filter-group {
                width: 100%;
                justify-content: space-between;
            }
            .filter-select {
                flex-grow: 1;
            }
        }
    </style>
</head>

<body>
    <div class="container">
        <!-- 返回按钮 -->
        <button class="back-btn" onclick="returnToProfile()">
            <i class="fas fa-arrow-left"></i> 返回个人中心
        </button>

        <!-- 页面头部 -->
        <header>
            <div class="page-header">
                <div>
                    <h1><i class="fas fa-history"></i> 全部活动记录</h1>
                    <p>共 24 条活动记录</p>
                </div>
                <div>
                    <div class="user-tag">
                        <i class="fas fa-user"></i> 胡鹏 | 钻石会员
                    </div>
                </div>
            </div>
        </header>

        <!-- 筛选区域 -->
        <div class="filters">
            <div class="search-box">
                <i class="fas fa-search"></i>
                <input type="text" placeholder="搜索活动记录..." id="searchInput">
            </div>

            <div class="filter-group">
                <select class="filter-select" id="typeFilter">
                    <option value="all">所有类型</option>
                    <option value="purchase">购买记录</option>
                    <option value="comment">评价记录</option>
                    <option value="coupon">优惠券</option>
                    <option value="shipping">物流更新</option>
                </select>

                <select class="filter-select" id="timeFilter">
                    <option value="all">所有时间</option>
                    <option value="week">最近一周</option>
                    <option value="month">最近一月</option>
                    <option value="year">最近一年</option>
                </select>

                <button class="filter-btn">
                    <i class="fas fa-filter"></i> 筛选
                </button>
            </div>
        </div>

        <!-- 活动时间线 -->
        <div class="timeline">
            <!-- 活动项 1 -->
            <div class="timeline-item" data-type="purchase">
                <div class="timeline-date">2025-06-18</div>
                <div class="timeline-content">
                    <div class="timeline-icon">
                        <i class="fas fa-shopping-cart"></i>
                    </div>
                    <div class="timeline-details">
                        <div class="timeline-title">
                            成功购买商品 <span class="badge badge-success">已完成</span>
                        </div>
                        <div class="timeline-desc">
                            智能手表 Series 5 - 黑色款 × 1 | 订单号: #20240618001
                        </div>
                        <div class="timeline-meta">
                            <span><i class="far fa-clock"></i> 10:25 AM</span>
                            <span><i class="fas fa-tag"></i> ¥1,299</span>
                            <span><i class="fas fa-check-circle"></i> 支付成功</span>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 活动项 2 -->
            <div class="timeline-item" data-type="comment">
                <div class="timeline-date">2025-06-17</div>
                <div class="timeline-content">
                    <div class="timeline-icon">
                        <i class="fas fa-comment-dots"></i>
                    </div>
                    <div class="timeline-details">
                        <div class="timeline-title">
                            商品评价 <span class="badge badge-primary">已发布</span>
                        </div>
                        <div class="timeline-desc">
                            "无线蓝牙耳机音质非常出色，续航能力强，佩戴舒适，非常满意的一次购物体验！"
                        </div>
                        <div class="timeline-meta">
                            <span><i class="far fa-clock"></i> 14:30 PM</span>
                            <span><i class="fas fa-star"></i> 5星评价</span>
                            <span><i class="fas fa-box"></i> 订单 #20240605003</span>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 活动项 3 -->
            <div class="timeline-item" data-type="coupon">
                <div class="timeline-date">2025-06-16</div>
                <div class="timeline-content">
                    <div class="timeline-icon">
                        <i class="fas fa-gift"></i>
                    </div>
                    <div class="timeline-details">
                        <div class="timeline-title">
                            领取优惠券 <span class="badge badge-primary">已使用</span>
                        </div>
                        <div class="timeline-desc">
                            满¥1000减¥150 限时优惠券 | 有效期至 2025-06-30
                        </div>
                        <div class="timeline-meta">
                            <span><i class="far fa-clock"></i> 09:15 AM</span>
                            <span><i class="fas fa-tag"></i> 优惠券编号: C20240616005</span>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 活动项 4 -->
            <div class="timeline-item" data-type="shipping">
                <div class="timeline-date">2025-06-15</div>
                <div class="timeline-content">
                    <div class="timeline-icon">
                        <i class="fas fa-truck"></i>
                    </div>
                    <div class="timeline-details">
                        <div class="timeline-title">
                            物流更新 <span class="badge badge-primary">运输中</span>
                        </div>
                        <div class="timeline-desc">
                            订单 #20240521007 已到达金华转运中心，预计明天送达
                        </div>
                        <div class="timeline-meta">
                            <span><i class="far fa-clock"></i> 16:45 PM</span>
                            <span><i class="fas fa-map-marker-alt"></i> 金华市</span>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 活动项 5 -->
            <div class="timeline-item" data-type="purchase">
                <div class="timeline-date">2025-06-12</div>
                <div class="timeline-content">
                    <div class="timeline-icon">
                        <i class="fas fa-shopping-cart"></i>
                    </div>
                    <div class="timeline-details">
                        <div class="timeline-title">
                            成功购买商品 <span class="badge badge-success">已完成</span>
                        </div>
                        <div class="timeline-desc">
                            高端电动牙刷 × 2 | 订单号: #20240612004
                        </div>
                        <div class="timeline-meta">
                            <span><i class="far fa-clock"></i> 11:20 AM</span>
                            <span><i class="fas fa-tag"></i> ¥458</span>
                            <span><i class="fas fa-check-circle"></i> 支付成功</span>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 活动项 6 -->
            <div class="timeline-item" data-type="comment">
                <div class="timeline-date">2025-06-10</div>
                <div class="timeline-content">
                    <div class="timeline-icon">
                        <i class="fas fa-comment-dots"></i>
                    </div>
                    <div class="timeline-details">
                        <div class="timeline-title">
                            商品评价 <span class="badge badge-primary">已发布</span>
                        </div>
                        <div class="timeline-desc">
                            "运动鞋穿着舒适，设计时尚，非常适合日常运动和休闲穿着"
                        </div>
                        <div class="timeline-meta">
                            <span><i class="far fa-clock"></i> 19:30 PM</span>
                            <span><i class="fas fa-star"></i> 4星评价</span>
                            <span><i class="fas fa-box"></i> 订单 #20240601002</span>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 活动项 7 -->
            <div class="timeline-item" data-type="shipping">
                <div class="timeline-date">2025-06-08</div>
                <div class="timeline-content">
                    <div class="timeline-icon">
                        <i class="fas fa-truck"></i>
                    </div>
                    <div class="timeline-details">
                        <div class="timeline-title">
                            物流更新 <span class="badge badge-success">已签收</span>
                        </div>
                        <div class="timeline-desc">
                            订单 #20240528011 已成功签收，感谢您选择优选商城！
                        </div>
                        <div class="timeline-meta">
                            <span><i class="far fa-clock"></i> 10:05 AM</span>
                            <span><i class="fas fa-user-check"></i> 本人签收</span>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 活动项 8 -->
            <div class="timeline-item" data-type="coupon">
                <div class="timeline-date">2025-06-05</div>
                <div class="timeline-content">
                    <div class="timeline-icon">
                        <i class="fas fa-gift"></i>
                    </div>
                    <div class="timeline-details">
                        <div class="timeline-title">
                            获得生日礼券 <span class="badge badge-info">未使用</span>
                        </div>
                        <div class="timeline-desc">
                            生日专属礼券 ¥100 无门槛 | 有效期至 2025-07-05
                        </div>
                        <div class="timeline-meta">
                            <span><i class="far fa-clock"></i> 00:01 AM</span>
                            <span><i class="fas fa-birthday-cake"></i> 生日礼遇</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!-- 分页控件 -->
        <div class="pagination">
            <button class="pagination-btn disabled">
                <i class="fas fa-chevron-left"></i>
            </button>
            <button class="pagination-btn active">1</button>
            <button class="pagination-btn">2</button>
            <button class="pagination-btn">3</button>
            <button class="pagination-btn">
                <i class="fas fa-chevron-right"></i>
            </button>
        </div>

        <footer>
            <p>© 2025 优选商城 | 活动记录 | 最后更新: 2025-06-20</p>
            <p>服务热线: 400-888-8888 | 客服邮箱: service@youxuanshop.com</p>
        </footer>
    </div>

    <script>
        // 返回个人中心函数
        function returnToProfile() {
            window.location.href = "index3.html";
        }

        // 页面加载完成后执行
        document.addEventListener('DOMContentLoaded', function() {
            // 搜索功能
            const searchInput = document.getElementById('searchInput');
            const timelineItems = document.querySelectorAll('.timeline-item');

            searchInput.addEventListener('input', function() {
                const searchTerm = searchInput.value.toLowerCase();

                timelineItems.forEach(item => {
                    const text = item.textContent.toLowerCase();
                    if (text.includes(searchTerm)) {
                        item.style.display = 'block';
                    } else {
                        item.style.display = 'none';
                    }
                });
            });

            // 筛选功能
            const typeFilter = document.getElementById('typeFilter');

            typeFilter.addEventListener('change', function() {
                const selectedType = typeFilter.value;

                timelineItems.forEach(item => {
                    const itemType = item.getAttribute('data-type');

                    if (selectedType === 'all' || itemType === selectedType) {
                        item.style.display = 'block';
                    } else {
                        item.style.display = 'none';
                    }
                });
            });

            // 分页按钮事件
            const paginationBtns = document.querySelectorAll('.pagination-btn:not(.disabled)');

            paginationBtns.forEach(btn => {
                btn.addEventListener('click', function() {
                    // 移除当前活动页样式
                    document.querySelector('.pagination-btn.active').classList.remove('active');

                    // 添加活动页样式到当前点击的按钮
                    this.classList.add('active');

                    // 这里可以添加实际的分页加载逻辑
                    // 模拟加载效果
                    document.querySelector('.timeline').innerHTML = `
                        <div style="text-align: center; padding: 40px 0;">
                            <div class="spinner"></div>
                            <p style="margin-top: 20px;">正在加载数据...</p>
                        </div>
                    `;

                    setTimeout(() => {
                        // 模拟数据加载完成
                        window.location.reload();
                    }, 1500);
                });
            });
        });
    </script>
</body>

</html>